#pragma once
#include "scene.h"
#include "scene_manager.h"

extern SceneManage scene_manager;
extern IMAGE img_menu_background;

class MenuScene : public Scene
{
public:
	MenuScene() = default;
	~MenuScene() = default;
	
	void on_enter()
	{
		mciSendString(L"play bgm_menu repeat from 0", NULL, 0, NULL);
	}
	void on_update(int delta) 
	{ 
		
	}
	void on_draw(const Camera& camera)
	{ 
		putimagePNG(0, 0, &img_menu_background);
	}
	void on_input(const ExMessage& msg) 
	{
		if (msg.message == WM_KEYDOWN)
		{
			mciSendString(L"play ui_confirm repeat from 0", NULL, 0, NULL);
			scene_manager.switch_to(SceneManage::SceneType::Selector);
		}
	}
	void on_exit() 
	{
		mciSendString(L"stop ui_confirm repeat from 0", NULL, 0, NULL);
	}
private:
	
};